/***
 * @常量路由
 */
export const Layout = () => import("@/views/Layout/index.vue")
export const constRouter = [
  {
    path: "/",
    name: "Layout",
    meta: { title: "", icon: "", isShow: false },
    component: Layout,
    // children: [
    //   {
    //     path: "/home",
    //     name: "home",
    //     meta: { title: "首页", icon: "HomeFilled", isShow: true },
    //     component: () => import("@/views/Home/index.vue"),
    //   },
    // ],
  },
  {
    path: "/home",
    meta: { title: "home", isShow: false },
    component: () => import("@/views/Home/index.vue"),
  },
  {
    path: "/table",
    meta: { title: "table", isShow: false },
    component: () => import("@/views/Table/index.vue"),
  },
  {
    path: "/404",
    meta: { title: "404", isShow: false },
    component: () => import("@/views/404/index.vue"),
  },
]
/****
 * @异步路由也叫权限路由
 */
export const asyncRouter = [

]
/***
 * @任意路由
 */
export const anyRouter = [
  //任意路由
  {
    path: "/:pathMatch(.*)*",
    // name: 'Any',
    meta: { title: "任意路由", isShow: false },
    redirect: "/404",
  },
]
